# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=onboard
pkgver=1.4.1
pkgrel=12
pkgdesc="On-screen keyboard useful on tablet PCs or for mobility impaired users"
url="https://launchpad.net/onboard"
license="GPL-3.0-only"
arch="all"
depends="python3 hunspell iso-codes py3-cairo py3-dbus py3-gobject3
	ncurses gsettings-desktop-schemas librsvg"
makedepends="python3-dev py3-setuptools py3-distutils-extra
	bash bash-dev gtk+3.0-dev libxkbfile-dev dconf-dev
	libcanberra-dev hunspell-dev eudev-dev"
source="https://launchpad.net/onboard/${pkgver%.*}/$pkgver/+download/onboard-$pkgver.tar.gz
	glibc-musl-error.patch
	no-werror.patch
	fix-gil-for-alloc.patch
	fix-pyunicode.patch
	"
options="!check" # cannot open display
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
ed75c1dce893e3420ecf532faffb15efc9fba56cf6622b03fe5e1cebb88d32304636b0268e4b8b75dc0eb6d7bfc8602c4a93a90bdeb8cd960d3447d16acc7463  onboard-1.4.1.tar.gz
23742c38f877fc31260d4d7d3ff38c8d72541a77e099183d6633de74bcb223bbd34cedd88016f043867b2571f1196b59a3378a94186b468dbaa7a5d00661065a  glibc-musl-error.patch
b6613340246ac3821e38850d3dbf05cd85cb42f7253416e9e524573d4839b0dc249c49adff61e4b2129f6ed1a34ba075b2b9b6d4da3820abe5aa38bb154787af  no-werror.patch
bb4e088e017ddbf56f9d794396802488614e44bfa1ae60d577620c2a738458bc21821c78834202e188469f8924fb0189f1c91c4e178ea04399ec8e9031edee92  fix-gil-for-alloc.patch
294a172eb7934f825f1351838bf4e69d5f98d807ee99aecb1068851d3628c561889599234e5d6c6b3cab2df9fd2a49b1ac2474ae235b806534a763c394fafc67  fix-pyunicode.patch
"
